<template>
	<view class="content">
		<view class="main">
			
			<navgatsVue :navigationMsg="navigationMsg" style="z-index: 2;"></navgatsVue>
			<view class="postion_dw">
				
			</view>
			<view class="kfs_top" @click="indexs">
				<view class="kfs_top_zuo">
					<p style="font-size: 40rpx;margin-top: 80rpx;margin-left: 30rpx;">反馈建议</p>
					<p style="font-size: 25rpx;margin-left: 30rpx;">我们将认真聆听您宝贵的建议</p>
				</view>
				<view class="kfs_top_you">
					<view class="dw_jindus">
						<image src="/static/客服 (1).png" style="width: 40rpx;height: 40rpx;margin-top: 5rpx;margin-left: 10rpx;" mode=""></image>
						<p style="line-height: 50rpx;margin-left: 10rpx;">联系客服</p>
					</view>
				</view>
			</view>
			<view class="tabtops">
				
			</view>
			<view class="tab">
				<view class="tab-item" v-for="(item,index) in tabList" :key="index" @click="changeTab(item,index)">
					<view :class="tabActiveIndex==index?'text activeText':'text'">
						{{item.text}}
					</view>
					<view :class="tabActiveIndex==index?'icon activeIcon':'icon'"></view>
				</view>
			</view>
			<view class="lists_btm" v-for="(item,index) in listbtms" :key="index">
				<view class="lists_btm_zuo">
					<p>{{item.title}}</p>
				</view>
				<view class="lists_btm_you">
					<image src="/static/前进.png" mode="" style="width: 45rpx;height: 45rpx;margin-top: 27rpx;margin-left: 50rpx;"></image>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	import navgatsVue from "../../../common/navgats/navgats.vue"
	export default {
		data() {
			return {
				navigationMsg:{
					title:"帮助中心",
			
				},
				listbtms:[
					{
						title:"商家服务态度恶劣"
					},
					{
						title:"商家无故取消订单"
					},
					{
						title:"商家未履约服务/承诺"
					},
					{
						title:"商家私下多收费/要求签附加协议"
					},
					{
						title:"订单一直未审核"
					},
					{
						title:"联系不上商家"
					},
					
				],
				tabList: [{
					id: 1,
					text: "常见问题"
				}, {
					id: 2,
					text: "支付问题"
				}, {
					id: 3,
					text: "设备维修"
				}, {
					id: 4,
					text: "租赁保障"
				}],
				tabActiveIndex: 0
			}
		},
		components:{
			navgatsVue
		},
		methods: {
			changeTab(item, index) {
				this.tabActiveIndex = index
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
			width: 100vw;
			height: 100vh;
			/* position: absolute; */
			background-color: #F6F6F6;
			// display: flex;
			// flex-direction: column;
			// align-items: center;
			overflow-y: auto;
		}
		.main {
			width: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
		}
		.postion_dw{
			width: 100vw;
			height: 50vh;
			position: absolute;
			top: 0;
			background: linear-gradient(to bottom, #FCE847 ,#FCD748, #F9F9F9);
			z-index: 0;
		}
		.kfs_top{
			width: 90%;
			height: 200rpx;
			z-index: 2;
			display: flex;
		}
		.kfs_top_zuo{
			width: 60%;
			height: 100%;
		}
		.kfs_top_you{
			width: 40%;
			height: 100%;
		}
		.dw_jindus{
			width: 200rpx;
			height: 50rpx;
			border: 1px solid black;
			border-radius: 30rpx;
			display: flex;
			margin-left: 50rpx;
			margin-top: 100rpx;
		}
		.tabtops{
			width: 95%;
			height: 50rpx;
			border-radius: 20rpx 20rpx 0  0 ;
			background-color: #ffffff;
			margin-top: 20rpx;
			z-index: 2;
		}
		.tab {
			width: 95%;
			height: 80rpx;
			/* margin-top: 30rpx; */
			display: flex;
			justify-content: space-between;
			background: #ffffff;
			// border-radius: 10rpx;
			z-index: 2;
			.tab-item {
				width: 150rpx;
				height: 100%;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-between;
		
				.text {
					font-size: 28rpx;
					color: #4b4b4b;
					font-weight: bold;
				}
		
				.activeText {
					color: black;
					font-weight: bold;
					font-size: 32rpx;
				}
		
				.icon {
					width: 50rpx;
					height: 20rpx;
				}
		
				.activeIcon {
					background-image: url("/static/index/tabActive.png");
					background-size: cover;
				}
			}
		}
		.lists_btm{
			width: 95%;
			height: 100rpx;
			background-color: #ffffff;
			display: flex;
			z-index: 2;
		}
		.lists_btm_zuo{
			width: 80%;
			height: 100%;
			
			line-height: 100rpx;
		}
		.lists_btm_zuo p{
			font-size: 30rpx;
			margin-left: 20rpx;
		}
		.lists_btm_you{
			width: 20%;
			height: 100%;
		}
		.btms_title{
			width: 90%;
			height: 200rpx;
			// background-color: #ffffff;
			position: absolute;
			bottom: 0;
		}
</style>
